package com.langfeiyes.pattern.interpret.demo1;

import org.springframework.expression.Expression;
import org.springframework.expression.spel.standard.SpelExpressionParser;

public class SpringELTest {

    public static void main(String[] args) {
        SpelExpressionParser parser = new SpelExpressionParser();
        Expression expression = parser.parseExpression("(((1+2)-3) *4) / 5 ");
        System.out.println(expression.getValue());
    }
}
